import java.util.Random;
import java.util.Scanner;

public class arrya{
   public static void main(String[] args){
       /*int count=0;
       int zf=8844430;  double paper=0.1;
       while(paper <= zf ){
           paper *= 2;
           System.out.println(paper);
           count++;
       }System.out.println(count);*/
//       for (int i=1;i <= 5;i++){
//           System.out.println(i);
//       }  System.out.println("---------------");
//       for (int i=1;i<=10;i++){
//           System.out.println(i);
//       }
       Random r = new Random();
       Scanner sr = new Scanner(System.in);
       int randomNum = r.nextInt(100)+1;

       while(true){
           System.out.println("输入您要猜的数");
           int num = sr.nextInt();
           if(num > randomNum){
               System.out.println("猜大了");
           } else if(num < randomNum){
               System.out.println("猜小了");
           } else {
               System.out.println("猜中了");
               break;
           }
       }
       System.out.println("感谢您的使用");
    }
}